//
//  ESCommentModel.swift
//  HLSwiftWork
//
//  Created by hulinhu on 2018/6/13.
//  Copyright © 2018年 hulinhu. All rights reserved.
//

import UIKit

class ESCommentModel: NSObject {
    
    var ID: String = ""
    var voicetime: Int = 0
    var voiceurl: String = ""
    var content: String = ""
    var like_count = 0
    var user: ESUserModel!
    
    init(dict: [String: Any]) {
        ID = dict["id"] as? String ?? ""
        voicetime = dict["voicetime"] as? Int ?? 0
        content = dict["content"] as? String ?? ""
        voiceurl = dict["voiceurl"] as? String ?? ""
        like_count = dict["like_count"] as? Int ?? 0
        user = ESUserModel(dict: dict["user"] as! [String : Any])
    }

}
